Skip to content

Refactor sycl offload #19464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jul 23, 2025
Merged

Refactor sycl offload #19464

merged 15 commits into from
Jul 23, 2025

Conversation

srividya-sundaram
Copy link
Contributor

No description provided.

@srividya-sundaram srividya-sundaram requested review from a team and removed request for a team July 16, 2025 01:53
Comment on lines +1524 to +1529
auto &TC = getOffloadToolChain(C.getInputArgs(), Action::OFK_SYCL, TT,
HostTC->getTriple());
C.addOffloadDeviceToolChain(&TC, Action::OFK_SYCL);

OffloadArchs[&TC] = getOffloadArchs(C, C.getArgs(), Action::OFK_SYCL, &TC,
/*SpecificToolchain=*/true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - These can be moved into L1496

Comment on lines +7514 to +7520
if (IsIntelGPUOffloadArch(Arch)) {
return Args.MakeArgStringRef(ArchStr);
}

if (IsIntelCPUOffloadArch(Arch)) {
return Args.MakeArgStringRef(ArchStr);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (IsIntelGPUOffloadArch(Arch)) {
return Args.MakeArgStringRef(ArchStr);
}
if (IsIntelCPUOffloadArch(Arch)) {
return Args.MakeArgStringRef(ArchStr);
}
if (IsIntelGPUOffloadArch(Arch) ||
IsIntelCPUOffloadArch(Arch)) {
return Args.MakeArgStringRef(ArchStr);
}

@srividya-sundaram srividya-sundaram marked this pull request as ready for review July 23, 2025 01:00
@srividya-sundaram srividya-sundaram requested review from a team as code owners July 23, 2025 01:00
@jsji jsji merged commit a84154e into sycl-web Jul 23, 2025
@bader bader deleted the refactor-sycl-offload branch July 23, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants